<template>
    <view>
        <web-view :webview-styles="webviewStyles" :src="url"></web-view >
    </view>
</template>

<script>
    export default {
        data() {
            return {
                webviewStyles: {
                    progress: {
                        color: '#FF3333'
                    }
                },
                url:'https://www.baidu.com'
            }
        },
        onLoad: function (option) {
            console.log(option.webUrl);
            this.url = option.src;
        },
        onBackPress(){
            uni.switchTab({
                url: '/pages/tabbar/home/index'
            });
            return true;
        }
    }
</script>

<style>

</style>
